package com.bw;

import com.bw.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling//开启定时
public class QsApp {
    public static void main(String[] args) {
        SpringApplication.run(QsApp.class,args);
    }

    /**
     * 注入idWork
     * @return
     */
    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1,1);
    }
}
